package com.mayuran19.portal.sales.database.domain;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

import com.mayuran19.portal.common.database.domain.Address;
import com.mayuran19.portal.common.database.domain.Contact;
import com.mayuran19.portal.common.database.domain.DomainObject;

@Entity(name = "customers")
public class Customer extends DomainObject {
	private Long id;
	private String name;
	private Address address;
	private Contact contact;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Address getAddress() {
		return address;
	}

	public void setAddress(Address address) {
		this.address = address;
	}

	public Contact getContact() {
		return contact;
	}

	public void setContact(Contact contact) {
		this.contact = contact;
	}

}
